package com.wanxi.dao;

import com.wanxi.model.AreaModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Li
 * @Date 2023/4/27 17:22
 */
public class AreaDao {
    public List<AreaModel> getARea() {
        List<AreaModel> AreaList = new ArrayList<AreaModel>();
        String[] images = {"../img/a1.png","../img/b1.png","../img/c1.png"};
        String[] names = {"诉讼、仲裁法律服务","公司法律服务","金融资本法律服务"};
        for (int i = 0; i < images.length; i++) {
            AreaList.add(AreaModel.builder()
                    .image(images[i])
                    .name(names[i])
                    .build());
        }
        return AreaList;
    }

    public List<AreaModel> getARea1() {
        List<AreaModel> AreaList1 = new ArrayList<AreaModel>();
        String[] images1 = {"../img/d1.png","../img/e1.png","../img/f1.png"};
        String[] names1 = {"知识产权法律服务","国际法律服务","特色法律服务"};
        for (int i = 0; i < images1.length; i++) {
            AreaList1.add(AreaModel.builder()
                    .image(images1[i])
                    .name(names1[i])
                    .build());
        }
        return AreaList1; 
    }


        


}
